package com.longjianghuasheng.logistics.business.billing_period.adapter

import androidx.core.view.isVisible
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.longjianghuasheng.logistics.R
import com.longjianghuasheng.logistics.databinding.ItemAccountDetailsBinding

class AccountDetailsAdapter :
    BaseQuickAdapter<String, BaseDataBindingHolder<ItemAccountDetailsBinding>>(R.layout.item_account_details) {
    override fun convert(holder: BaseDataBindingHolder<ItemAccountDetailsBinding>, item: String) {
        holder.dataBinding?.run {
            tvTitle.isVisible = holder.layoutPosition == 0

        }
    }
}